package cn.neusoft.mapper;

import cn.neusoft.pojo.OrderDetail;
import com.fasterxml.jackson.databind.ser.Serializers;
import org.apache.ibatis.annotations.Mapper;

import javax.xml.soap.Detail;
import java.util.List;
@Mapper
public interface OrderDetailMapper extends BaseMapper<OrderDetail> {
	//这个是在添加订单的时候同时要添加订单明细
	int addBatch(List<OrderDetail> list);

	//根据一个订单编号，来查询出这个订单的明细
	List<OrderDetail> getByOrderId  (Integer orderId);
	int deleteByOrderId (Integer orderId);

	List<OrderDetail> getCountByOrderId(Integer orderId);
}
